//
//  MyFriendsCell.m
//  觅影
//
//  Created by  陶虹 on 16/4/9.
//  Copyright © 2016年  陶虹. All rights reserved.
//

#import "MyFriendsCell.h"

@interface MyFriendsCell ()
@property (strong, nonatomic) IBOutlet UIImageView *icon;
@property (strong, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation MyFriendsCell

- (void)configureCellWithModel:(MyFriendsModel *)model{
    [self.icon sd_setImageWithURL:[NSURL URLWithString:model.header]];
    self.nameLabel.text = model.username;
}
- (void)configureCellWithSearchModel:(SearchFriendsModel *)model{
    [self.icon sd_setImageWithURL:[NSURL URLWithString:model.header]];
    self.nameLabel.text = model.username;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
